package com.ruoyi.system.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.system.domain.SysPointExchangeOrder;
import com.ruoyi.system.mapper.SysPointExchangeOrderMapper;
import com.ruoyi.system.service.ISysPointExchangeOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author HP
 * @Date 2021/3/3
 * @Description TODO
 */
@Service
public class SysPointExchangeOrderImpl implements ISysPointExchangeOrderService {
    @Autowired
    private SysPointExchangeOrderMapper sysPointExchangeOrderMapper;
    /*
    查询所有的兑换记录
     */

    @Override
    public List<SysPointExchangeOrder> querySysPointExchangeOrder(SysPointExchangeOrder sysPointExchangeOrder,Integer pageNum,Integer pageSize) {
        List<SysPointExchangeOrder> sysPointExchangeOrders = sysPointExchangeOrderMapper.querySysPointExchangeOrder(sysPointExchangeOrder);
        return sysPointExchangeOrders;
    }

    @Override
    public void saveSysPointExchangeOrder(SysPointExchangeOrder sysPointExchangeOrder) {
        sysPointExchangeOrderMapper.saveSysPointExchangeOrder(sysPointExchangeOrder);
    }
}
